package day240418.work;

public class Student {
    //state
     static Student instance;
    //constructor
    private Student(){
        System.out.println("验证new的时候是否会调用我");
    }
    //behavior
    public Student getInstance(){
        Student instance =new Student();
        Student student=new Student();
        return student;

    }

}
